<script setup>

import TableComponent from "@/components/TableComponent.vue";
import { ref } from "vue";
import ClassFormComponent from "@/components/form/ClassFormComponent.vue";
const title = ref([
  {
    propName: 'name',
    name: '班级名称',
  },
  {
    propName: 'id',
    name: '班级编号',
  },
  {
    propName: 'count',
    name: '班级人数',
  },
  {
    propName: 'teacherName',
    name: '班级老师',
  },
  {
    propName: 'majorName',
    name: '专业',
  },
  {
    propName: 'collegeName',
    name: '所属学院',
  }
])
const url = ref({
  deleteUrl: '',
  editUrl: '',
  searchUrl: '/class/get-search',
  showUrl: '/class/get-all-class-info',
  getCountUrl: '/class/get-class-count',
})
const formVisible = ref(false)
const handleDialogCancel = (visible) => {
  formVisible.value = visible
  console.log('cancel', visible)
}
</script>

<template>
  <div class="container">
    <div class="table-container">
      <TableComponent class="table" :title="title" :url="url" form-type="Class"/>
    </div>
  </div>
</template>

<style scoped>
</style>
